const Player = (socket, data) => {
    let that = {};
    let _socket = socket;
    let _uid = data.uid;
    let _nickName = data.nickName;
    let _avatarUrl = data.avatarUrl;
    let _house_card_count = data.house_card_count;
    let _callBackIndex = dta._callBackIndex;
    _socket.emit('notify', { msg: 'login', callBackIndex: _callBackIndex, data: 'welcome' });

    return that;
};

let _playerList = [];
exports.createPlayer = (socket, data) => {
    console.log(`create player = ${JSON.stringify(data)}`);
    let player = Player(socket, data);
    _playerList.push(player);
}
